package com.yun.zf.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.zf.common.admin.dto.sys.SubWayDto;
import com.yun.zf.common.app.domain.ZfSubway;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 地铁线路表 Mapper 接口
 * </p>
 *
 * @author cj
 * @since 2021-01-29
 */
@Mapper
public interface ZfSubwayMapper extends BaseMapper<ZfSubway> {

    @Select("<script>" +
            "  SELECT id,`name` subName , sort from zf_subway WHERE city_code= #{cityCode} " +
            "</script>")
    public List<SubWayDto> getSubs(Long cityCode);
}
